package edu.sctu.zhuyingzhi.month201506.day20150617.IOtest;

import java.io.*;

/**
 * Created by user13 on 2015/6/17.
 */
public class BufferTest {
    public static void bufferIn(String path) throws IOException {
        File file = new File(path);

        BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
        byte[] bytes = new byte[1024];
         bufferedInputStream.read(bytes,0,1024);
        System.out.println(new String(bytes));
    }
}
